<script type="text/javascript">
    setTimeout(function () {
        $("body").css({opacity:1});
    },100);
</script>
<div class="top_menu">
    <nav>
        <ul class="col-sm-6 nav navbar-top-links navbar-left" style="height: 100%;line-height: 3em;">
            <li style="float: left;"><a href="/"><i class="fa fa-home"> </i>首页</a></li>
            {$page_top = page_top()}
            {foreach name="page_top" key="key" id="v" index="i"}
            {if isset($v.hidden) && $v.hidden == 1}
            <li style="float: left;"><a href="javascript:;"><i class="fa fa-angle-right" style="margin:0 10px 0 0;"></i>{$v.name}</a></li>
            {else}
            <li style="float: left;"><a href="/{$v.url}"><i class="fa fa-angle-right" style="margin:0 10px 0 0;"></i>{$v.name}</a></li>
            {/if}
            {/foreach}

        </ul>
        <ul class="col-sm-6 nav navbar-top-links navbar-right ul_r" style="height: 100%;line-height: 3em;">
            <li>
                <a href="/admin_login_out"><i class="fa fa-sign-out"></i> 退出</a>
            </li>
            <li>
                <a href="/index/clear_cache"><i class="fa fa-trash-o"></i> 清除缓存</a>
            </li>
            <li>
                <a href="javascript:;">欢迎您 {:cookie("fwf_admin_name")} <i class="fa fa-unlock-alt" id="rules" href="/power/admin_edit/id/{:cookie('fwf_admin_id')}"></i></a>
            </li>
        </ul>
    </nav>
</div>
<script type="text/javascript">
    $(function () {
        $("body").css({overflowY:"initial"}).addClass("overflow-y-show");
        /*var top_menu = $(".top_menu");
        top_menu.attr("class","top_menu").css("width",((document.documentElement.clientWidth || window.innerWidth)-230)+"px");
        $(window).on("resize",function (e) {
            top_menu.attr("class","top_menu").css("width",((document.documentElement.clientWidth || window.innerWidth)-230)+"px");
        });*/
        $("#rules").on("click",function (e) {
            location.href = this.getAttribute("href")+"/?token="+localStorage.getItem("token");
        });

    });

</script>